package ai.rpc.core.serializer;

import ai.rpc.core.spi.SpiLoader;

/**
 * @Author: mengyu
 * @Date: 2024/7/27
 */
public class SerializerFactory {
    static{
        SpiLoader.load(Serializer.class);
    }

    private static final Serializer DEFAULT_SERIALIZER = new JdkSerializer();

    public static Serializer getInstance(String key){
        return SpiLoader.getInstance(Serializer.class,key);
    }
}
